﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Create.ascx.cs" Inherits="Team4Mock.UserControl.Support.Create" %>
<style type="text/css">
    .style1
    {
        height: 38px;
    }
    .style2
    {
        height: 33px;
    }
    .style3
    {
        height: 33px;
        width: 105px;
    }
    .style4
    {
        width: 105px;
    }
    .style5
    {
        height: 38px;
        width: 105px;
    }
</style>
<script type="text/javascript">
    function Error() {
        alert("Error in processing !");
        window.location.href = "/FormView/Default.aspx";
    }
</script>
<fieldset style="width: 760px; margin-left: 10px;">
    <legend style="height: 25px; background-color: #465c71; -webkit-border-radius: 5px 5px 0px 0px;
        color: #dde4ec; font-size: 18px;">Support Details</legend>
    <asp:Panel runat="server" ID="CreateSupport">
        <h2>
            Create New Support Material</h2>
        <table cellpadding="0" cellspacing="0" border="0" width="700px" style="font-size: 15px;">
            <tr>
                <td class="style2">
                    URL (*)
                </td>
                <td class="style2">
                    <asp:TextBox ID="txtUrl1" runat="server" Width="180px"></asp:TextBox>
                </td>
                <td class="style3">
                    Added By
                </td>
                <td class="style2">
                    <asp:TextBox ID="txtAddBy1" ReadOnly="true" runat="server" Width="180px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Description
                </td>
                <td>
                    <asp:TextBox ID="txtDes1" TextMode="MultiLine" runat="server" Width="180px" Height="68px"></asp:TextBox>
                </td>
                <td class="style4">
                    Added Date
                </td>
                <td>
                    <asp:TextBox ID="txtDate" runat="server" Width="180px" ReadOnly="True"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    Type
                </td>
                <td class="style1">
                    <asp:DropDownList ID="dlType1" runat="server" Width="180px">
                        <asp:ListItem Value="DOC">DOC</asp:ListItem>
                        <asp:ListItem Value="PDF">PDF</asp:ListItem>
                        <asp:ListItem Value="XLS">XLS</asp:ListItem>
                        <asp:ListItem Value="PPT">PPT</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td class="style5">
                    &nbsp; Is Active
                </td>
                <td class="style1">
                    <asp:CheckBox runat="server" ID="ckactive" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Button runat="server" ID="SaveSup" Text="Save" CssClass="button" Width="63px"
                        OnClick="SaveSup_Click" />
                    <asp:Button runat="server" ID="Back" Text="Back" CssClass="button" Width="72px" OnClick="Back_Click" />
                </td>
            </tr>
        </table>
        <br />
        <asp:UpdatePanel ID="pnanel" runat="server">
            <ContentTemplate>
                <p style="width: 765px; background-color: lavender; line-height: 25px;">
                    <asp:Label ID="tb" runat="server" Style="font-size: 15px;"></asp:Label>
                </p>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="SaveSup" EventName="Click" />
            </Triggers>
        </asp:UpdatePanel>
        <asp:UpdateProgress ID="pro" runat="server" AssociatedUpdatePanelID="pnanel">
        </asp:UpdateProgress>
    </asp:Panel>
    <asp:Panel runat="server" ID="pnEdit">
        <h2>
            Amend Support Material</h2>
        <table cellpadding="0" cellspacing="0" border="0" width="700px" style="font-size: 15px;">
            <tr>
                <td class="style2">
                    URL (*)
                </td>
                <td class="style2">
                    <asp:TextBox ID="txtUrl2" runat="server" Width="180px"></asp:TextBox>
                </td>
                <td class="style3">
                    Added By
                </td>
                <td class="style2">
                    <asp:TextBox ID="txtAddBy2" ReadOnly="true" runat="server" Width="180px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Description
                </td>
                <td>
                    <asp:TextBox ID="txtDes2" TextMode="MultiLine" runat="server" Width="180px" Height="68px"></asp:TextBox>
                </td>
                <td class="style4">
                    Added Date
                </td>
                <td>
                    <asp:TextBox ID="txtDate2" runat="server" Width="180px" ReadOnly="True"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    Type
                </td>
                <td class="style1">
                    <asp:DropDownList ID="dlType2" AutoPostBack="false" runat="server" Width="180px">
                        <asp:ListItem Value="DOC">DOC</asp:ListItem>
                        <asp:ListItem Value="PDF">PDF</asp:ListItem>
                        <asp:ListItem Value="XLS">XLS</asp:ListItem>
                        <asp:ListItem Value="PPT">PPT</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td class="style5">
                    &nbsp; Is Active
                </td>
                <td class="style1">
                    &nbsp;
                    <asp:CheckBox ID="ckactive0" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Button runat="server" ID="btnDel" Text="Delete" CssClass="button" Width="72px"
                        OnClick="btnDel_Click" />
                    <asp:Button runat="server" ID="btnSave" Text="Save" CssClass="button" Width="63px"
                        OnClick="btnSave_Click" />
                    <asp:Button runat="server" ID="btnBack" Text="Back" CssClass="button" Width="72px"
                        OnClick="btnBack_Click" />
                </td>
            </tr>
        </table>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <p style="width: 765px; background-color: lavender; line-height: 25px;">
                    <asp:Label ID="lb" runat="server" Style="font-size: 15px;"></asp:Label>
                </p>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btnSave" EventName="Click" />
                <asp:AsyncPostBackTrigger ControlID="btnDel" EventName="Click" />
            </Triggers>
        </asp:UpdatePanel>
        <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
        </asp:UpdateProgress>
    </asp:Panel>
</fieldset>
